﻿#include <iostream>
using namespace std;

int main() {
	int n;
	do {
		cout << "n：";
		cin >> n;
	} while (n <= 0);

	for (int i = 2; i <= n / 2; i++) {
		if (n % i == 0) {
			cout << i << '\n';
		}
	}

	cin.get();
	cin.get();
}